import axios, { AxiosRequestConfig } from "axios";
import { useMainStore } from "@/store";
const store = useMainStore();
export async function getOriginizationApi(params) {
  return await axios({
    url:"/RcsProxy/manager/unit/yonghuPower!getPowerById.action",
    method: "GET",
    params,
    headers: {
      TOKEN: store.userInfo.cmd.TOKEN,
      Policeno: store.userInfo.cmd.POLICE_ID,
    }
  });
}
export async function getOriginizationUsersApi(data) {
  return await axios({
    url:"/RcsProxy/manager/unit/yongHuInfo!loadYonghuDDTByUnitid.action",
    method: "POST",
    data,
    headers: {
      TOKEN: store.userInfo.cmd.TOKEN,
      Policeno: store.userInfo.cmd.POLICE_ID,
    }
  });
}
export async function getDrivingLine(data) {
  return await axios({
    url:"/RcsProxy/manager/unit/yongHuInfo!loadYonghuDDTByUnitid.action",
    method: "POST",
    data,
    headers: {
      TOKEN: store.userInfo.cmd.TOKEN,
      Policeno: store.userInfo.cmd.POLICE_ID,
    }
  });
}

